package cn.marinda.resturants.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/** 权限实体类
 * @Date 2021/11/15
 * @Author Marinda
 *
 */
@Data
@TableName("r_permissions")
public class Permission {
    @TableId(value = "uid",type = IdType.NONE)
    private long uid;
    private String name;
    @TableField(value = "child_uid")
    private long childUid;
    @TableField(value = "parent_uid")
    private long parentUid;

    @Version
    private int version;

}
